import { Injectable } from '@nestjs/common';
import { ActionResultTemplateInterface } from './../common/ResponseResult';
import { queryPgDatabases } from './../service/dataSource';

@Injectable()
export class TestDaoImpl {
  testDao(version: string): string {
    return `testDao! ${version}`;
  }
  async queryData(): Promise<ActionResultTemplateInterface> {
    return await queryPgDatabases({
      sql: `select * from life_notes.test `,
      params: [],
    });
  }
}
